<?php

namespace App\Enums;

class LoginEnums extends BaseEnums
{
    
    const WXCODE_ERROR = 3001;
    const EMPTY_PASSWORD = 3002;
    const ERROR_PASSWORD = 3003;
    const DISABLED_ACCOUNT = 3004;
    const NOT_EXISTS = 3005;
    const NOT_PROMOTER = 3006;

    /**
     * @inheritDoc
     */
    protected static function codesMap() : array
    {
        // TODO: Implement codesMap() method.
        return [
            self::WXCODE_ERROR => '授权码失效，请重试',
            self::EMPTY_PASSWORD => '密码错误',
            self::ERROR_PASSWORD => '密码不正确',
            self::DISABLED_ACCOUNT => '该账号被禁用，无法登录',
            self::NOT_EXISTS => '不存在用户',
            self::NOT_PROMOTER => '不是推广员，无法登录',
        ];
    }
}